Repository navigation
test(pm-stack): isolate health-priming server from machine state (#14167) - #14414
Merged
Merged
Conversation
) The health-priming test spawned the real aggregator with the caller env and its cwd in the package directory. Quota-current, the quota heartbeat, the meta-renewal state and the gatherer (QUOTA_CURRENT_PATH) all defaulted into the package dir, the freshness IPC port collided with a live aggregator on 4871, and background quota gather ran against the real machine. Point every writable path at the test tmp dir, run the server from there, and add a guard that fails if the run leaves files in the package dir.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 29 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #14167. The health-priming test spawned the real aggregator with the caller env and cwd in the package dir. Its writes and background jobs went to the machine:
quota-current.json, the quota heartbeat and the meta-renewal state defaulted to the package dir. The gatherer also readsQUOTA_CURRENT_PATH.Changes, all in
pm-stack/aggregator/test/health-priming.test.ts:PM_AGG_QUOTA_CURRENT_FILE,QUOTA_CURRENT_PATH,META_RENEWAL_STATE_PATHandPM_AGG_FRESHNESS_PORTinto the tmp dir.Evidence
bun test test/health-priming.test.ts: 2 pass, 0 fail.meta-renewal.jsonandmeta-credential.jsonin the package dir.git statusis clean inpm-stack/aggregator/.Filed and worked from queue task 23336 (oc-code-03).
{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-24T14:21:04Z", "session_id": "ses_e5df21b813effeAIn8E93bQWHV", "lane": null, "host": "amd", "worktree": "/home/user/git/code/.agent-worktrees/oc-code-03-14167", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/user/git/code/.agent-worktrees/oc-code-03-14167", "repo": "developing-today/code", "branch": "oc-code-03/14167-health-priming-isolation", "sha": "44bad6f965ce75dfbcae4f33de4532d33c63e111" }, "auth_subject": "any-n", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.